package net.dntuan.training.spring.security;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

class MyWebAuthenticationDetails extends WebAuthenticationDetails {

	private static final long serialVersionUID = 1L;
	private static final String APP_ID_PARAM = "app_id";
	private final String appId;

	public MyWebAuthenticationDetails(HttpServletRequest request) {
		super(request);
		this.appId = request.getParameter(APP_ID_PARAM);
	}

	public String getAppId() {
		return appId;
	}

}